package com.seelyn.ddvideo.service;

import com.seelyn.ddvideo.model.WeiXinMenu;
import com.seelyn.ddvideo.repository.WeiXinMenuRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author slacrey
 * @since 2017/6/20
 */
@Service
public class WeiXinMenuService {

    @Autowired
    private WeiXinMenuRepository weiXinMenuRepository;

    public WeiXinMenu findByMenuId(String menuId) {
        return weiXinMenuRepository.findByMenuId(menuId);
    }

    public WeiXinMenu saveMenu(WeiXinMenu menu) {
        return weiXinMenuRepository.save(menu);
    }

}
